﻿﻿package test {
	import flash.text.TextFormat;
	import flash.text.TextField;

	import extremefx.tools.Overloader;
	import extremefx.extensions.isNullOrEmpty;

	import flash.display.Sprite;
	import flash.utils.getTimer;

	/**
	 * @author Marcelo Volmaro
	 */
	 
	[Frame(factoryClass="extremefx.Preloader")];
	public class OverloadTest extends Sprite {
		public function $ctor():void {
			ScreenTrace.trace("aa");
		}
		
		private var _sarasa:flash.utils.Dictionary;
		
		public function main():void {
			ScreenTrace.init(stage);

			ScreenTrace.trace(isNullOrEmpty("").toString())
			
		}
		
		private function _string(pString:String):String{
			return pString + " > input string";
		}
		
		private function _overloadTest(pVal:OverloadTest):String {
			return "overload test > " + pVal.toString();
		}

		public var method:Function = 
			Overloader.define
				.method(_string, String)
				.method(_overloadTest, OverloadTest)
				.done();		
	}
}
